// swift-tools-version: 5.6
// The swift-tools-version declares the minimum version of Swift required to build this package.

import PackageDescription

let package = Package(
    name: "molecular-core",
    platforms: [.macOS(.v12)],
    products: [
        .library(name: "Molecular", targets: ["Molecular"]),
    ],
    dependencies: [
        .package(url: "https://gitee.com/git-forking/molecular-objects", branch: "master"),
        .package(url: "https://gitee.com/GloomySunday/molecular-icons", branch:"master"),
        .package(url: "https://github.com/vapor/vapor", from: "4.65.0"),
        .package(url: "https://github.com/vapor/fluent", from: "4.5.0"),
        .package(url: "https://github.com/binarybirds/liquid", from: "1.3.0"),
        .package(url: "https://github.com/binarybirds/mail", from: "0.0.2"),
        .package(url: "https://github.com/binarybirds/swift-html", from: "1.6.0"),
    ],
    targets: [
        .target(name: "Molecular", dependencies: [
            .product(name: "MolecularObjects", package: "molecular-objects"),
            .product(name: "MolecularIcons", package: "molecular-icons"),
            .product(name: "Vapor", package: "vapor"),
            .product(name: "Fluent", package: "fluent"),
            .product(name: "Liquid", package: "liquid"),
            .product(name: "Mail", package: "mail"),
            .product(name: "SwiftHtml", package: "swift-html"),
            .product(name: "SwiftSvg", package: "swift-html"),
            .product(name: "SwiftRss", package: "swift-html"),
            .product(name: "SwiftSitemap", package: "swift-html"),
        ], resources: [
            .copy("System/Bundle"),
        ]),
        .testTarget(name: "MolecularTests", dependencies: ["Molecular"]),
    ]
)
